//LoginView.vue
<template>
  <div class="HBox">
    <!-- 左侧图片区域 -->
    <div class="bar-container">
      <ChatBarComponent />
    </div>
    
    <!-- 右侧登录组件 -->
    <div class="centre_box">
      <ChatComponent />
    </div>
  </div>
</template>

<script>
import ChatBarComponent from '@/components/ChatBarComponent.vue'
import ChatComponent from '@/components/ChatComponent.vue'

export default {
  name: 'MainVeiw',
  components: {
    ChatBarComponent,
	ChatComponent
  },
}
</script>

<style scoped>
	/* 左侧图片容器：固定宽度，高度自适应 */
	.bar-container {
	  flex: 0 0 30%; 
	  overflow: hidden; /* 防止图片溢出 */
	}
</style>